<?php
/**
 * Created by PhpStorm.
 * User: ownfi
 * Date: 2017-03-20
 * Time: 15:25
 */

namespace App\Services;

use App\Models\Master;

/**
 * 数据缓存
 * Interface ICacheService
 * @package App\Services
 */
interface ICacheService
{

    /**
     * 手机短信验证码
     * @param $verifyCode
     * @return mixed
     */
    public function smsVerifyCode($phoneNum,$verifyCode = null,$minutes = 5);

    /**
     * 当前用户
     * @param Master|null $user
     * @return mixed
     */
    public function currentUser($weixinUserid, Master $user = null,$minutes = 1440);

}